//
//  SeatViewController.h
//  OrderSeat
//
//  Created by wangwei on 13-10-11.
//  Copyright (c) 2013年 wangwei. All rights reserved.
//

@class SeatDataSource;
@interface SeatViewController : BaseViewController<UIGestureRecognizerDelegate,UIAlertViewDelegate>

@property (strong, nonatomic) IBOutlet UIView *contectView;

@property (weak, nonatomic) IBOutlet UILabel *seatDateLabel;
@property (strong, nonatomic) IBOutlet UIButton *lunchBtn;
@property (strong, nonatomic) IBOutlet UIButton *dinnerBtn;
@property (strong, nonatomic) IBOutlet UIButton *boxBtn;
@property (strong, nonatomic) IBOutlet UIButton *loungeBtn;
@property (strong, nonatomic) IBOutlet UIButton *hallBtn;
@property (strong, nonatomic) IBOutlet UILabel *shopNameLabel;
@property (strong, nonatomic) IBOutlet UITextField *dateTF;

@property (strong, nonatomic) IBOutlet UIView *doneBar;
@property (strong, nonatomic) IBOutlet UIButton *doneBtn;
@property (strong, nonatomic) IBOutlet UIDatePicker *datePicker;

@property (strong, nonatomic) NSString *shopId;
@property (strong, nonatomic) SeatDataSource *dataSource;

- (id)initWithShopId:(NSString*)shopId;

@end

@interface SeatDataSource : BaseDataSource

@property (strong, nonatomic) NSArray *states;
@property (strong, nonatomic) SeatViewController *viewController;

- (void)fetchSeatState:(NSString *)shopId date:(NSString *)date timeType:(NSInteger)type;
- (void)fetchSeatDate;

@end
